home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 19
/
CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso
/
CUCD
/
Graphics
/
Ultraconv
/
Rexx
/
SingleMultiply
< prev
next >
Wrap
Text File
|
1997-08-07
|
2KB
|
47 lines
/* SingleMultiply ©1997 by Felix Schwarz
This small script makes up to 99999 pictures
out of one and gives over all pictures to UConv.
This is useful, if you want to make moved light
sources on a permanent backdrop in FULL 24bit depth
(you no more need to do multiplying in DPaint or PPaint..)
You can use parts of this Rexx-script in your own scripts.
*/
options results
address 'UConv'
cachepath="UConv:Work2/"
GETASLFILE "Which_pic_shall_be_multiplied_?" "Ultraconvlogo.brsh"
file=result
IF EXISTS(file)=1 THEN DO
BLOCKMAINGUI ON
FIRSTINFILE file
OUTFORMAT 14
FIRSTOUTFILE cachepath||"Multi.ppm.00001"
SCALEREQ OFF NOGUI
ROTATEREQ OFF NOGUI
DITHERREQ OFF NOGUI
FILTERREQ OFF NOGUI
ANIMFXREQ OFF NOGUI
ANIMPUBREQ OFF NOGUI
CONVERT
BLOCKMAINGUI ON
FIRSTOUTFILE ""
OUTFORMAT 1
STRINGREQUESTER "How_many_frames_shall_be_created_?" "Ok!" "Cancel" "Enter number of frames:"
num=result
OPENPROGRESSBAR 1 "Working.."
SETPROGRESSBAR 1 0 "Working.."
DO i=2 to num
FORMATTEDNUM i "00000"
address command 'copy '||cachepath||'Multi.ppm.00001 '||cachepath||'Multi.ppm.'||result
SETPROGRESSBAR 1 (i/num)*100 "Working.."
END
FIRSTINFILE cachepath||'Multi.ppm.00001'
FORMATTEDNUM num '00000'
LASTINFILE cachepath||'Multi.ppm.'||result
CLOSEPROGRESSBAR 1
BLOCKMAINGUI OFF
END
ELSE REQUESTER "Error" "OK!" "The picture doesn`t exist!"
EXIT